package cn.xgl6.springcloud.order.service.impl;

import cn.xgl6.springcloud.domain.Order;
import cn.xgl6.springcloud.order.mapper.OrderMapper;
import cn.xgl6.springcloud.order.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author xgl
 * @create 2020-05-14 15:34
 */
@Service
public class OrderServiceImpl implements OrderService {
    @Autowired
    private OrderMapper orderMapper;

    @Override
    public int createOrder(Order order) {
        int i = orderMapper.insertSelective(order);
        return i;
    }
}
